<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加企业</title>
<style type="text/css">
.tr{
width: 515px;
height: 40px;
}
.td1{
width: 100px;
height: 40px;
float: left;
}
.td2{
width: 200px;
height: 40px;
float: left;
}
.td3{
width: 140px;
height: 40px;
float: left;
}
.span{
color: red;
}

#province{
width: 80px;
height: 25px;
}
#citys{
width: 80px;
height: 25px;
}
#countys{
width: 80px;
height: 25px;
}
#streets{
width: 80px;
height: 25px;
}

</style>
</head>
<body>
<s:hidden value="%{ads.adImage}" id="image"></s:hidden>
<div style="width:600px;height: 420px;margin: 0px auto;background-color: #f0e68c">
<div class="tr">
<div class="td1" align="right"><span>广告描述：</span></div>
<div class="td2"><s:property value="ads.adDesc"/> </div>
</div>
<div class="tr">
<div class="td1" align="right"><span>广告图片:</span></div>
<div class="td2"><img alt="" src="" id="img"> </div>
</div>
<script type="text/javascript">
var src=$("#image").val();
var url="<%=basePath %>upload/"+src;
$("#img").attr("src",url); 
</script>
</div>
</body>
</html>